package com.collect.cameroon.zhiBean.zhiReceive;

import com.collect.cameroon.zhiGlobal.zhiAppSettings.ZHIProjectConstants;
import com.collect.cameroon.zhiUtils.StringUtil;

import java.io.Serializable;

public class ZHIRPerformanceB1Entity implements Serializable {
    private String completeFlag;
    private String bonus;
    private String remainNum;

    public String getCompleteFlag() {
        return StringUtil.safeString(completeFlag);
    }

    public void setCompleteFlag(String completeFlag) {
        this.completeFlag = completeFlag;
    }

    public boolean isCompleteFlag() {
        return getCompleteFlag().equalsIgnoreCase("YES");
    }

    public String getBonus() {
        return StringUtil.safeString(bonus);
    }

    public void setBonus(String bonus) {
        this.bonus = bonus;
    }

    public String getBonusFormat() {
        return StringUtil.numberTothousandFormatter(getBonus()) + ZHIProjectConstants.RS_FLAG;
    }

    public String getRemainNum() {
        return StringUtil.safeString(remainNum);
    }

    public int getRemainNumInt() {
        return StringUtil.numberTothousandFormatterInt(getRemainNum());
    }

    public void setRemainNum(String remainNum) {
        this.remainNum = remainNum;
    }
}
